RabbitMQ Article 1: setup and configuration of rabbitMQ and rabbitmq Article 1
Install rabbitMQ in WindowsStep 1: Install software
If rabbitMQ is installed, first install OTP software based on the erlang language, and then download the r
file:/etc/rabbitmq/rabbitmq-env.conf6. Install the web management plug-in
# Management plugin by default in the release version of RabbitMQ, enable can # service restart, configuration effective [root @ rmq-node1 ~] # Rabbitmq-plugins enable rabbitmq_management
7. Set iptab
First, jQuery use plug-inPlug-in lookup and help-Plug-in library for the official JQuery website (http://plugins.jquery.com)A large number of plugins are available. and give out the user rating, version and bug of each plugin.-The library lists zip file downloads, demos, sample code and tutorials for each plugin650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7E/76/wKiom1cAyTnSndGiAADBKW6jZSY282.png "title=" Web.png "alt=" Wkiom1caytnsndgiaa
/profile #set rabbitmq environment export PATH=$PATH:/usr/local/rabbitmq/sbinsource /etc/profile
Start the service:
Rabbitmq-server-detached // start rabbitmq.-detached indicates that the backend daemon is started.
Check the status. If the following information is displayed, the installation is successful:
rabbit
only by starting the plug-in.
$ sudo rabbitmq-plugins enable rabbitmq_management
Then access: IP: 15672 through a browser
Enter the user name and password to access the Web management interface.Configure rabbitmq
For the configuration of rabbitmq, you can download the configuration file template of
step, view status
Rabbitmqctl status
This way, although we've started the RABBITMQ service normally, we can't connect when we enter ip:15672 in the physical machine browser, because we haven't configured the maintenance plugin and turned on the remote connection yet.
Step seventh, install command maintenance plugin
Rabbitmq-plugins Enable Rabbitmq_management
S
Installing RABBITMQ under 1.Windows requires the following steps(1): Download Erlang because the RABBITMQ server code is written using Erlang in the Concurrency language: http://www.erlang.org/downloads, Double-click the. exe file to install it, create an environment variable named Erlang_home after installation, its value points to the installation directory for ERLANG, add%erlang_home%\bin to path, and fi
capabilities, you can bind multiple exchange together and implement your own exchange through a plug-in mechanism.
3) message cluster (clustering)Multiple RabbitMQ servers can form a single cluster, forming a logical Broker.
4) High Availability (highly Available Queues)Queues can be mirrored on machines in a cluster so that queues are still available in the event of a partial node problem.
5) multiple protocols (multi-protocol)
, enter the plugins directory, copy the ez File above to the plugins directory, and then run the command to enable this plug-in.
In centos, the default path is/usr/lib/rabbitmq/lib/rabbitmq_server-3.3.4/plugins (the version number may change)
In windows, the default path is C: \ Program Files \
Files (x86) \RABBITMQ Server\rabbitmq_server-3.5.5\sbin>rabbitmq-plugins.bat enable Rabbitmq_ Managementthe following plugins have been Enabled:mochiweb webmachine rabbitmq_web_dispatch amqp_client Rabbitmq_man Agement_agent rabbitmq_managementapplying plugin configuration to [email protected] started 6 plugins.through http://localhost:15672/ access, the input g
:
rabbitmqctl change_password JC 123
Delete user JC:
rabbitmqctl delete_user JC
You can also enable the rabbitmq_management plug-in to view and manage the RabbitMQ Service on the web interface.
rabbitmq-plugins enable rabbitmq_management
2.3 download Client dll of RabbitMQ
: Http://www.rabbitmq.com/releases/
Installation Environment
Virtual machine: vmware®workstation 10.0.1 Build
Linux system: CentOS6.5
Official installation: http://www.rabbitmq.com/install-rpm.html
1. Install Erlang
1) Enable Epel on your machine
Execute the following two lines of command as root
Su-c ' Rpm-uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm '
su-c ' yum install Foo
2) Enableerlang Repository
Execute the following command as root (guaranteed to install the latest version of Epel)
W
contentRABBITMQ_MNESIA_BASE =/opt/kit/rabbitmq/data/dbRABBITMQ_LOG_BASE =/opt/kit/rabbitmq/data/logs
Allow the guest to log on from another machine. By default, the management website does not allow the guest to log on remotely.Vi/etc/rabbitmq. configThe filling content is (note the points at the end of the content ):[{Rabbit, [{loopback_users, []}].
Number of
); Console.WriteLine ("Done"); Channel. BasIcack (ea. Deliverytag, false); } } }}Three management interfaceRABBITMQ also has a management interface that allows you to view the current state of the RABBITMQ Server, which is provided as a plug-in, and has been brought to the plug-in when the RABBITMQ is installed. What needs to be done is to enable the plugin in the
); Console.WriteLine ("Done"); Channel. BasIcack (ea. Deliverytag, false); } } }}Three management interfaceRABBITMQ also has a management interface that allows you to view the current state of the RABBITMQ Server, which is provided as a plug-in, and has been brought to the plug-in when the RABBITMQ is installed. What needs to be done is to enable the plugin in the
); Console.WriteLine ("Done"); Channel. BasIcack (ea. Deliverytag, false); } } }}Three management interfaceRABBITMQ also has a management interface that allows you to view the current state of the RABBITMQ Server, which is provided as a plug-in, and has been brought to the plug-in when the RABBITMQ is installed. What needs to be done is to enable the plugin in the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.